package cn.com.shopec.erp.stock.entity;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.GenericGenerator;

@Entity
@Table(name = "TBL_PRODUCT_BARCODE")
public class ProductBarCode implements Serializable {

	private static final long serialVersionUID = 8387897370973160964L;

	/** id **/
	private String id;

	/** 条码号 **/
	private String codeNo;

	/** 入库单号 **/
	private String stockInNo;

	/** 出库单号 **/
	private String stockOutNo;

	/** 入库商品单号 **/
	private String stockInProductId;
	
	/** 出库商品单号 **/
	private String stockOutProductId;
	
	/** 入库类型 **/
	private Integer stockInType;

	/** 入库类型编号 **/
	private String stockInTypeNo;

	/** 出库类型 **/
	private Integer stockOutType;

	/** 出库库类型编号 **/
	private String stockOutTypeNo;
	
	/** 采购单号 **/
	private String purNo;

	/** 货品编号 **/
	private String prodNo;

	/** 商品编号 **/
	private String commoNo;

	/** 仓库编号 **/
	private String whNo;

	/** 供应商编号 */
	private String supNo;

	/** 数量 **/
	private Long prodQuantity;

	/** 创建人员 **/
	private String creater;

	/** 创建日期 **/
	private Date createTime;

	/** 修改人员 **/
	private String updater;

	/** 修改日期 **/
	private Date updateTime;

	/** 删除标识 **/
	private Integer deletedFlag;

	/** 有效数据 **/
	private Integer effectiveState;
	
	@Id
	@GenericGenerator(name = "generator", strategy = "uuid.hex")
	@GeneratedValue(generator = "generator")
	@Column(name = "id", unique = true, nullable = false, length = 32)
	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "PROD_NO")
	public String getProdNo() {
		return prodNo;
	}

	public void setProdNo(String prodNo) {
		this.prodNo = prodNo;
	}

	@Column(name = "WH_NO")
	public String getWhNo() {
		return whNo;
	}

	public void setWhNo(String whNo) {
		this.whNo = whNo;
	}

	@Column(name = "SUP_NO")
	public String getSupNo() {
		return supNo;
	}

	public void setSupNo(String supNo) {
		this.supNo = supNo;
	}

	@Column(name = "CREATE_TIME")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Column(name = "CREATER")
	public String getCreater() {
		return creater;
	}

	public void setCreater(String creater) {
		this.creater = creater;
	}

	@Column(name = "UPDATER")
	public String getUpdater() {
		return updater;
	}

	public void setUpdater(String updater) {
		this.updater = updater;
	}

	@Column(name = "UPDATE_TIME")
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Column(name = "DELETED_FLAG")
	public Integer getDeletedFlag() {
		return deletedFlag;
	}

	public void setDeletedFlag(Integer deletedFlag) {
		this.deletedFlag = deletedFlag;
	}

	@Column(name = "COMMO_NO")
	public String getCommoNo() {
		return commoNo;
	}

	public void setCommoNo(String commoNo) {
		this.commoNo = commoNo;
	}

	@Column(name = "CODE_NO")
	public String getCodeNo() {
		return codeNo;
	}

	public void setCodeNo(String codeNo) {
		this.codeNo = codeNo;
	}

	@Column(name = "STOCKIN_TYPE")
	public Integer getStockInType() {
		return stockInType;
	}

	public void setStockInType(Integer stockInType) {
		this.stockInType = stockInType;
	}

	@Column(name = "STOCKIN_TYPE_NO")
	public String getStockInTypeNo() {
		return stockInTypeNo;
	}

	public void setStockInTypeNo(String stockInTypeNo) {
		this.stockInTypeNo = stockInTypeNo;
	}

	@Column(name = "STOCKIN_NO")
	public String getStockInNo() {
		return stockInNo;
	}

	public void setStockInNo(String stockInNo) {
		this.stockInNo = stockInNo;
	}

	@Column(name = "PUR_NO")
	public String getPurNo() {
		return purNo;
	}

	public void setPurNo(String purNo) {
		this.purNo = purNo;
	}

	@Column(name = "PORD_QUANTITY")
	public Long getProdQuantity() {
		return prodQuantity;
	}

	public void setProdQuantity(Long prodQuantity) {
		this.prodQuantity = prodQuantity;
	}

	@Column(name = "STOCKIN_PRODUCT_ID")
	public String getStockInProductId() {
		return stockInProductId;
	}

	public void setStockInProductId(String stockInProductId) {
		this.stockInProductId = stockInProductId;
	}
	
	@Column(name = "STOCKOUT_NO")
	public String getStockOutNo() {
		return stockOutNo;
	}

	public void setStockOutNo(String stockOutNo) {
		this.stockOutNo = stockOutNo;
	}
	
	@Column(name = "STOCKOUT_PRODUCT_ID")
	public String getStockOutProductId() {
		return stockOutProductId;
	}

	public void setStockOutProductId(String stockOutProductId) {
		this.stockOutProductId = stockOutProductId;
	}

	@Column(name = "EFFECTIVE_STATE")
	public Integer getEffectiveState() {
		return effectiveState;
	}

	public void setEffectiveState(Integer effectiveState) {
		this.effectiveState = effectiveState;
	}

	@Column(name = "STOCKOUT_TYPE")
	public Integer getStockOutType() {
		return stockOutType;
	}

	public void setStockOutType(Integer stockOutType) {
		this.stockOutType = stockOutType;
	}
	
	@Column(name = "STOCKOUT_TYPE_NO")
	public String getStockOutTypeNo() {
		return stockOutTypeNo;
	}

	public void setStockOutTypeNo(String stockOutTypeNo) {
		this.stockOutTypeNo = stockOutTypeNo;
	}
	
	
}